package com.cml.common.dto.message;

import com.cml.common.constant.MessageType;
import com.cml.common.dto.entity.Message;

/**
 * 姓名：陈茂林
 * 时间：2023/11/6 11:54
 * 描述：
 */
public class ServiceInstanceChangeRequest extends Message {
    private String serviceInstanceRegisterList;

    public String getServiceInstanceRegisterList() {
        return serviceInstanceRegisterList;
    }

    public void setServiceInstanceRegisterList(String serviceInstanceRegisterList) {
        this.serviceInstanceRegisterList = serviceInstanceRegisterList;
    }

    public Integer doGetMessageLength() {
        return Message.MESSAGE_TYPE_LENGTH+this.serviceInstanceRegisterList.length();
    }

    public Integer doGetMessageType() {
        return MessageType.CLIENT_REQUEST_SERVICE_CHANGE_MESSAGE;
    }

    @Override
    public String toString() {
        return "ServiceInstanceChangeRequest{" +
                "serviceInstanceRegisterList='" + serviceInstanceRegisterList + '\'' +
                '}';
    }
}
